/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 说明：
 * Entity Name 费用单明细
 * @Author：李智深
 * @Date：2012-03-14
 */
@Entity
@Table(name="ruipeng_tb_TFeeDetail")
public class TFeeDetail implements Serializable {

	private static final long serialVersionUID = 1L;

	private String DetailID;//明细编号CHAR(15)PK
	
	private String Des;//费用说明VARCHAR(1024)
	
	private double Fee;//DECIMAL(20,3)
	
	private TFee TFee;//费用单
	
	private TFeeType TFeeType;//费用项

	@Id
	@Column(name = "DetailID", length=15)
	public String getDetailID() {
		return DetailID;
	}

	public void setDetailID(String detailID) {
		DetailID = detailID;
	}

	@Column(name = "Des", length=1024)
	public String getDes() {
		return Des;
	}

	public void setDes(String des) {
		Des = des;
	}

	@Column(name = "Fee", precision = 20, scale = 3)
	public double getFee() {
		return Fee;
	}

	public void setFee(double fee) {
		Fee = fee;
	}

	@ManyToOne
	@JoinColumn(name="TFeeID")
	public TFee getTFee() {
		return TFee;
	}

	public void setTFee(TFee tFee) {
		TFee = tFee;
	}

	@ManyToOne
	@JoinColumn(name="FeeTypeID")
	public TFeeType getTFeeType() {
		return TFeeType;
	}

	public void setTFeeType(TFeeType tFeeType) {
		TFeeType = tFeeType;
	}
}
